package com.wft.factory.abst;

public class ComputerEngineer {
    private CpuApi cpu = null;
    private MainBoardApi mainBoard;

    public void makeComputer(AbstractFactory factory){
        cpu = factory.createCPU();
        mainBoard = factory.createMainBoard();
        cpu.calcuate();
        mainBoard.installCPU();
    }

    public static void main(String[] args) {
        ComputerEngineer computerEngineer = new ComputerEngineer();
        computerEngineer.makeComputer(new ComputeA());
    }
}
